package com.java110.intf.goods;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.mainCategory.MainCategoryProductDto;
import com.java110.po.mainCategory.MainCategoryProductPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IMainCategoryProductInnerServiceSMO
 * @Description 主目录商品接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-goods", configuration = {FeignConfiguration.class})
@RequestMapping("/mainCategoryProductApi")
public interface IMainCategoryProductInnerServiceSMO {


    @RequestMapping(value = "/saveMainCategoryProduct", method = RequestMethod.POST)
    public int saveMainCategoryProduct(@RequestBody MainCategoryProductPo mainCategoryProductPo);

    @RequestMapping(value = "/updateMainCategoryProduct", method = RequestMethod.POST)
    public int updateMainCategoryProduct(@RequestBody MainCategoryProductPo mainCategoryProductPo);

    @RequestMapping(value = "/deleteMainCategoryProduct", method = RequestMethod.POST)
    public int deleteMainCategoryProduct(@RequestBody MainCategoryProductPo mainCategoryProductPo);

    /**
     * <p>查询小区楼信息</p>
     *
     * @param mainCategoryProductDto 数据对象分享
     * @return MainCategoryProductDto 对象数据
     */
    @RequestMapping(value = "/queryMainCategoryProducts", method = RequestMethod.POST)
    List<MainCategoryProductDto> queryMainCategoryProducts(@RequestBody MainCategoryProductDto mainCategoryProductDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param mainCategoryProductDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryMainCategoryProductsCount", method = RequestMethod.POST)
    int queryMainCategoryProductsCount(@RequestBody MainCategoryProductDto mainCategoryProductDto);

    /**
     * 查询所有数据
     *
     * @param mainCategoryProductDto
     * @return
     */
    @RequestMapping(value = "/queryMainCategoryAllGoods", method = RequestMethod.POST)
    List<MainCategoryProductDto> queryMainCategoryAllGoods(@RequestBody MainCategoryProductDto mainCategoryProductDto);

    /**
     * 查询所有数据
     *
     * @param mainCategoryProductDto
     * @return
     */
    @RequestMapping(value = "/queryMainCategoryAllServs", method = RequestMethod.POST)
    List<MainCategoryProductDto> queryMainCategoryAllServs(@RequestBody MainCategoryProductDto mainCategoryProductDto);
}
